package mts.utils;

import org.apache.log4j.Logger;


public class FloorUtil {
	@SuppressWarnings("unused")
	private static final Logger log = Logger.getLogger(FloorUtil.class);
	public static String getFloorName(byte floor) {
		if (floor == (byte)0) {
			return "B";
		} else if (floor == (byte)1) {
			return "L";
		} else {
			return "" + floor;
		}		
	}
	
//	public static String getDirection(Direction direction) {
//
//		if (direction == Direction.UP) {
//			return "UP";
//		} else if (direction == Direction.DOWN) {
//			return "DN";
//		}
//		
//		log.error("Unknown direct {" + direction + "}");
//		return "Unknown direction";
//	}
//	
//	public static String getStatus(CarStatus status) {
//		switch (status) {
//		case StatusTypes.SPOOLING:
//			return "IDLE";
//		case StatusTypes.MOVING:
//			return "MOVE";
//		case StatusTypes.OPENING:
//			return "OPEN";
//		case StatusTypes.CLOSING:
//			return "CLOSE";
//		case StatusTypes.STOPPED:
//			return "STOP";
//		}
//		
//		return "ERR";
//	}
	
	private FloorUtil() {}
}
